Average Velocity problem 02.mws

1. The Tangent problem.

Consider the function given by the equation y = sqrt(x) . We can define this function with Maple.

> f:=x->sqrt(x);

f := sqrt

We can now evaluate the function at 4 and 5.

> f(4);

2

We hope that everyone knew this one already!

> f(5);

sqrt(5)

Well that's good enough (in fact it's perfect) and if we want a decimal approximation we can use evalf later.  We can compute the slope of the secant line through these two points, ( 2, 4 ) and ( 5, sqrt(5) ) .

> (f(5)-f(4))/(5-4);

sqrt(5)-2

Now we can write the equation of the secant line through these two points.

> S:=x->(sqrt(5)-2)/(5-4)/(5-4)*(x-4)+2;

S := proc (x) options operator, arrow; (sqrt(5)-2)*...

We can now plot both f and S on the same axis.

> plot([f,S],0..10);

[Maple Plot]

Let's plot from 4 to 5.

> plot([f,S],4..5);

[Maple Plot]

It's hard to tell these two graphs apart. That is the secant line approximates the function closely between 4 and 5. So the slope of the secant line (which is the rate of change of the secant line)

> evalf(sqrt(5)-2);

.236067978

approximates the rate of change of our function f(x) = sqrt(x) at x = 4 . If we want a better approximation of the rate of change at x = 4 we can pick the second value closer to 4.

Submission:

(a) Compute the equation for the secant line through the points ( 4, 2 ) and ( 4.1, f(4.1) ) . Also compute the equation for the secant line through the points ( 3.9, f(3.9) ) and ( 4, 2 ) . Now graph the two secant lines and the function f(x) = sqrt(x) on the same set of axes.

(b) Repeat the above by changing 4.1 to 4.01 and 3.9 to 3.99 .

(c) Redo the above by changing 4.01 to 4.001 and 3.99 to 3.999.

(d) Make your best 'educated' guess at the slope of the tangent line to f at ( 4, 2 ) . Then compute the equation of the tangent line and plot the tangent line together with the function on the same set of axes.

Submission worksheet: